package com.molichuxing.services.infrastructure.service.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.molichuxing.services.infrastructure.bean.PyCarFinanceRequestLogBean;
import com.molichuxing.services.infrastructure.dao.PyCarFinanceRequestLogMapper;
import com.molichuxing.services.infrastructure.dto.request.create.PyCarFinanceRequestLogCreateDto;
import com.molichuxing.services.infrastructure.service.PyCarFinanceRequestLogService;

/**
 * 
 * @author liyg
 * 鹏元汽车金融评分服务实现类
 * 2019-09-23
 *
 */
@Service("pyCarFinanceRequestLogService")
public class PyCarFinanceRequestLogServiceImpl implements PyCarFinanceRequestLogService{

	@Autowired
	private PyCarFinanceRequestLogMapper pyCarFinanceRequestLogMapper;
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	@Override
	public Integer create(PyCarFinanceRequestLogCreateDto createDto) {
		PyCarFinanceRequestLogBean bean=new PyCarFinanceRequestLogBean();
		BeanUtils.copyProperties(createDto, bean);
		pyCarFinanceRequestLogMapper.create(bean);
		return bean.getId();
	}
}
